package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketItem;

import cn.taoticket.fallback.TaoticketItemClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketItemClientFallBack.class)
public interface RestTaoticketItemClient {

@RequestMapping(value = "/getTaoticketItemById",method = RequestMethod.POST)
public TaoticketItem getTaoticketItemById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketItemListByMap",method = RequestMethod.POST)
public List<TaoticketItem>	getTaoticketItemListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketItemCountByMap",method = RequestMethod.POST)
public Integer getTaoticketItemCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketItem",method = RequestMethod.POST)
public Integer qdtxAddTaoticketItem(@RequestBody TaoticketItem taoticketItem)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketItem",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketItem(@RequestBody TaoticketItem taoticketItem)throws Exception;
}
